package my.software.basic;

public class Rectangle {
    private Point3d leftTopPoint;
    private float width;
    private float height;
    
    public Rectangle(Point3d leftTopPoint, float width, float height) {
        this.leftTopPoint = leftTopPoint;
        this.width = width;
        this.height = height;
    }

    public float getLeftBorder() {
        return leftTopPoint.getY();
    }
    
    public float getRightBorder() {
        return leftTopPoint.getY() - width;
    }
    
    public float getUpBorder() {
        return leftTopPoint.getX();
    }
    
    public float getDownBorder() {
        return leftTopPoint.getX() + height;
    }
    
    public Point3d getLeftTopPoint() {
        return leftTopPoint;
    }

    public float getWidth() {
        return width;
    }

    public float getHeight() {
        return height;
    }

}
